package com.emcom.gotour.mvc.view;

import java.io.Serializable;
import org.apache.commons.lang.builder.CompareToBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public class ManageView implements Comparable<Object>, Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2296466781374211449L;
	private String title;
	private String categoryManage;
	private String tourManage;
	private NavigationView navigationView;
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getCategoryManage() {
		return categoryManage;
	}
	public void setCategoryManage(String categoryManage) {
		this.categoryManage = categoryManage;
	}
	public String getTourManage() {
		return tourManage;
	}
	public void setTourManage(String tourManage) {
		this.tourManage = tourManage;
	}
	public NavigationView getNavigationView() {
		return navigationView;
	}
	public void setNavigationView(NavigationView navigationView) {
		this.navigationView = navigationView;
	}
	/**
	 * @see java.lang.Comparable#compareTo(Object)
	 */
	public int compareTo(Object object) {
		ManageView myClass = (ManageView) object;
		return new CompareToBuilder().append(this.title, myClass.title).append(
				this.categoryManage, myClass.categoryManage).append(
				this.navigationView, myClass.navigationView).append(
				this.tourManage, myClass.tourManage).toComparison();
	}
	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof ManageView)) {
			return false;
		}
		ManageView rhs = (ManageView) object;
		return new EqualsBuilder().appendSuper(super.equals(object)).append(
				this.title, rhs.title).append(this.categoryManage,
				rhs.categoryManage).append(this.navigationView,
				rhs.navigationView).append(this.tourManage, rhs.tourManage)
				.isEquals();
	}
	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(144466507, 2014743395).appendSuper(
				super.hashCode()).append(this.title)
				.append(this.categoryManage).append(this.navigationView)
				.append(this.tourManage).toHashCode();
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("categoryManage",
				this.categoryManage).append("navigationView",
				this.navigationView).append("tourManage", this.tourManage)
				.append("title", this.title).toString();
	}
}
